package cn.jieruoda.eb.system.domain.entity;

import java.io.Serializable;
import java.util.Date;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import lombok.Data;

/**
 * 普通会员等级
 */
@Data
@Entity
@Table(name = "system_user_level")
public class SystemUserLevel implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    /**
     * 会员名称
     */
    @Column(name = "name", nullable = false, length = 255)
    private String name;
    
    /**
     * 达到多少升级经验
     */
    @Column(name = "experience", nullable = false)
    private Integer experience;
    
    /**
     * 是否显示 1=显示,0=隐藏
     */
    @Column(name = "is_show", nullable = false)
    private Integer isShow;
    
    /**
     * 会员等级
     */
    @Column(name = "grade", nullable = false)
    private Integer grade;
    
    /**
     * 享受折扣
     */
    @Column(name = "discount", nullable = false)
    private Integer discount;
    
    /**
     * 会员图标
     */
    @Column(name = "icon", nullable = false, length = 255)
    private String icon;
    
    /**
     * 是否删除.1=删除,0=未删除
     */
    @Column(name = "is_del", nullable = false)
    private Integer isDel;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;
} 